package com.seezoon.admin.modules.sys.service;

import com.seezoon.admin.framework.service.IBaseService;
import com.seezoon.dao.modules.sys.entity.SysDept;
import com.seezoon.dao.modules.sys.entity.SysDict;
import org.springframework.transaction.annotation.Transactional;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author 黎小荣
 * @since 2023/3/22
 */
public interface ISysDictService extends IBaseService<SysDict> {
    @Transactional(readOnly = true)
    SysDict findByTypeAndCode(@NotBlank String type, @NotBlank String code);

    @Transactional(readOnly = true)
    List<String> findTypes();

    @Transactional(readOnly = true)
    List<SysDict> findByType(String type);
}
